package com;

import java.util.List;

public class MyClone1 implements Cloneable{
	private String name;
	private HardEnum hardEnum;
	private List<SringOcc> stringOcc;
	private FareClassOcc fareOcc;

	/**
	 * This method is used to get the fareOcc
	 * @return fareOcc - FareClassOcc
	 */
	
	public FareClassOcc getFareOcc() {
		return fareOcc;
	}

	/**
	 * This method is used to set the fareOcc
	 * @param fareOcc - FareClassOcc
	 */
	
	public void setFareOcc(FareClassOcc fareOcc) {
		this.fareOcc = fareOcc;
	}

	/**
	 * This method is used to get the stringOcc
	 * 
	 * @return stringOcc - List<SringOcc>
	 */
	public List<SringOcc> getStringOcc() {
		return stringOcc;
	}

	/**
	 * This method is used to set the stringOcc
	 * 
	 * @param stringOcc
	 *            - List<SringOcc>
	 */

	public void setStringOcc(List<SringOcc> stringOcc) {
		this.stringOcc = stringOcc;
	}

	public HardEnum getHardEnum() {
		return hardEnum;
	}

	public void setHardEnum(HardEnum hardEnum) {
		this.hardEnum = hardEnum;
	}

	public MyClone1(String name, HardEnum hardEnum) {
		this.name = name;
		this.hardEnum = hardEnum;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public MyClone1 copy() {
		MyClone1 myclone = null;
		try {
			myclone = (MyClone1) super.getClass().newInstance();
		} catch (InstantiationException | IllegalAccessException e) {
			e.printStackTrace();
		}
		return myclone;
	}

	@Override
	public MyClone1 clone() throws CloneNotSupportedException {
		return (MyClone1)super.clone();
	}

}